#ifndef FILE_H_
#define FILE_H_

#include "../common/vector.h"
#include "../common/common.h"
#include "../listes/filelist.h"

u_char *fmd5sum(const char *filepath);
vector_p fmd5sum_bloc(const char *filepath, int begin, int end, int blocksize);

int fcreat(const char* filepath);
int fsize(const char *filepath);
char *fpath(const char *filename, const char *dirpath);

return_t finitlist(filelist_p list, const char *dirpath,int port,char * ip);
char *fgetname(const filelist_p list, const char *key);

#endif /* FILE_H_ */
